cmake: resolve symlinks in LLVMConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:43:06 +0000 (15:43 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 5 Nov 2019 09:30:26 +0000 (09:30 +0000)
commit355a4552fc96ab2a2d65cd05dee208c6c0714267
tree5fef6e0f4d42eaab3881d3b9b37fe470f8d027a7
parent65b41f6cf4dfde0947141ad1143c56ce7ce40170
cmake: resolve symlinks in LLVMConfig.cmake

Ensure that symlinks such as /usr/lib/llvm-X.Y/cmake (pointing to
lib/cmake/llvm) are resolved. This ensures that LLVM_INSTALL_PREFIX
becomes /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-llvm-cmake-resolve-symlinks-in-LLVMConfig.cmake.patch
llvm/cmake/modules/CMakeLists.txt